package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbUserInfo 用户详细信息
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbUserInfo  implements Serializable {


	/**
	 * 信息id
	 */
	private String bid;

	/**
	 * 性别,0 保密，1 男，2 女，3 其他
	 */
	private Integer sex;

	/**
	 * 生日
	 */
	private Date birth;

	/**
	 * 年龄
	 */
	private Long age;

	/**
	 * 职业
	 */
	private String profession;

	/**
	 * 学校
	 */
	private String school;

	/**
	 * 家乡
	 */
	private String home;

	/**
	 * 所属用户id
	 */
	private String uid;

	public String getBid() {
		return bid;
	}

	public void setBid(String bid) {
		this.bid = bid;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public Long getAge() {
		return age;
	}

	public void setAge(Long age) {
		this.age = age;
	}

	public String getProfession() {
		return profession;
	}

	public void setProfession(String profession) {
		this.profession = profession;
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getHome() {
		return home;
	}

	public void setHome(String home) {
		this.home = home;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	@Override
	public String toString() {
		return "TbUserInfo{" +
				"bid='" + bid + '\'' +
				", sex=" + sex +
				", birth=" + birth +
				", age=" + age +
				", profession='" + profession + '\'' +
				", school='" + school + '\'' +
				", home='" + home + '\'' +
				", uid='" + uid + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbUserInfo)) {
			return false;
		}
		TbUserInfo that = (TbUserInfo) o;
		return Objects.equals(bid, that.bid) &&
				Objects.equals(sex, that.sex) &&
				Objects.equals(birth, that.birth) &&
				Objects.equals(age, that.age) &&
				Objects.equals(profession, that.profession) &&
				Objects.equals(school, that.school) &&
				Objects.equals(home, that.home) &&
				Objects.equals(uid, that.uid);
	}

	@Override
	public int hashCode() {
		return Objects.hash(bid, sex, birth, age, profession, school, home, uid);
	}
}
